#pragma once

// CSensorNode

class CSensorNode : public CButton
{
	DECLARE_DYNAMIC(CSensorNode)

public:
	CSensorNode();
	virtual ~CSensorNode();

protected:
	DECLARE_MESSAGE_MAP()
public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	void RoundRect(Graphics* g, Brush* p, RectF r, REAL r1 , REAL r2 , REAL r3 , REAL r4 );
	void DrawOutline(Graphics* g, Brush* p, RectF r, REAL strong);
	void setInitial(int sensorID);
	void putSensorData(int id, float temper, float humi);
	void intitailSensor();

public:
	int	m_nSensorID;
	float m_Temperature;
	float m_Humidity;
	COLORREF crId[10];

};


